package com.atqinke.designpattern.behavioraltype.command;

/**
 * @BelongsProject: BasicConnection
 * @BelongsPackage: com.atqinke.designpattern.behavioraltype.command
 * @Author: NieHk
 * @CreateTime: 2022-08-28  22:54
 * @Description: 名列模式测试
 * @Version: 1.0
 */
public class test {
    public static void main(String[] args) {
        Order order1 = new Order(1);
        order1.getFoodDic().put("西红柿鸡蛋面",1);
        order1.getFoodDic().put("小杯可乐",2);

        SeniorChef receiver=new SeniorChef();

        OrderCommand command1 = new OrderCommand(receiver, order1);
        command1.execute();

        Waitor waitor = new Waitor();
        waitor.setCommand(command1);
        waitor.orderUp();
    }
}
